package com.example.dto;

import com.example.validation.CreateGroup;
import com.example.validation.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 * 宣传信息管理DTO
 * </p>
 * @author 34448
 */
@Data
public class AnnouncementDTO {

    /**
     * 公告ID
     */
    @NotNull(groups = UpdateGroup.class, message = "公告ID不能为空")
    @ApiModelProperty(value = "公告ID")
    private Integer announcementId;

    /**
     * 标题
     */
    @NotBlank(groups = {CreateGroup.class, UpdateGroup.class}, message = "标题不能为空")
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 内容
     */
    @NotBlank(groups = {CreateGroup.class, UpdateGroup.class}, message = "内容不能为空")
    @ApiModelProperty(value = "内容")
    private String content;
}